package ycj.learn.spring.bean;

import ycj.learn.spring.common.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
//@ComponentScan(value = "com.ycj.learn",excludeFilters =
//        {@ComponentScan.Filter(type = FilterType.ANNOTATION,classes = {Controller.class})} )
public class ConfigBeans01 {

    @Bean
    public Person person() {

        return new Person();
    }

    /**
     * 自定义的bean处理器
     */
    @Bean
    public BeanProcessor beanProcessor() {
        return new BeanProcessor();
    }
}
